import { getWebConfig } from "../axios/api/web";

export class webConfig {
    config: any;
    static _webConfig: webConfig;

    constructor() {
        webConfig._webConfig = this;
    }

    static async get() {
        if (!webConfig._webConfig.config) {
            webConfig._webConfig.config = await getWebConfig();
        }
        return webConfig._webConfig.config;
    }
}